package com.camel.ftp.server;

import org.apache.camel.builder.RouteBuilder;

public class LocalToFTPRouteBuilder extends RouteBuilder {

	@Override
	public void configure() throws Exception {
		// 注意：10.0.227.66 IP后面的斜杠'/'代表的就是FTP用户名密码对应的那个目录
//		from("file:/temp?delay=30000&delete=true").to("ftp://10.0.227.66/?username=cloudsftp&password=cloudsftp");
		from("file:E:\\\\temp?delay=30000&delete=false").to("ftp://10.11.12.189/?binary=true&passiveMode=true&delete=true&delay=5000&ftpClient.controlEncoding=gb2312");
	}

}
